<?php
$this->load->view("common/header");
?>
<?php
$tmpl =	array (
					'table_open'		  => '<table class="data">',

					'heading_row_start'	  => '<tr>',
					'heading_row_end'	  => '</tr>',
					'heading_cell_start'  => '<th>',
					'heading_cell_end'	  => '</th>',

					'row_start'			  => '<tr class="odd">',
					'row_end'			  => '</tr>',
					'cell_start'		  => '<td>',
					'cell_end'			  => '</td>',

					'row_alt_start'		  => '<tr class="even">',
					'row_alt_end'		  => '</tr>',
					'cell_alt_start'	  => '<td>',
					'cell_alt_end'		  => '</td>',

					'table_close'		  => '</table>'
			  );

$this->table->set_template($tmpl); 
$this->table->set_heading($fields);
//echo $this->table->generate($snaps);
?>
<div id="main" class="hideboth"><a id="content" name="content"></a>
	<div id="col3"><div id="col3_content">
<?php
	foreach($snaps as $site):
?>
	<div class="site clearfix">
		<div class="img">
			<a href="<?php echo $site['url'];?>"><?php echo $site['site'];?></a>
			<img src="<?php echo $site['img'];?>" />
		</div>
		<div class="desc">
			<ul>
				<li>上次更新：<?php echo date("Y-m-d H:i",strtotime($site['update']));?></li>
				<li>建立时间：<?php echo date("Y-m-d H:i",strtotime($site['create']));?></li>
			</ul>
		</div>
		<span class="memo">
			<span><?php echo str_repeat($site['memo'],100);?></span>
		</span>
	</div>
<?php
	endforeach;
?>
	</div></div>
</div>
<?php
	$this->load->view("common/footer");
?>
